
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.CardTime;

public interface CardTimeDao extends Dao {

    /**
     * Retrieves all of the cardTimes
     */
    public List getCardTimes(CardTime cardTime);

    /**
     * Gets cardTime's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the cardTime's id
     * @return cardTime populated cardTime object
     */
    public CardTime getCardTime(final Long id);

    /**
     * Saves a cardTime's information
     * @param cardTime the object to be saved
     */    
    public void saveCardTime(CardTime cardTime);

    /**
     * Removes a cardTime from the database by id
     * @param id the cardTime's id
     */
    public void removeCardTime(final Long id);
}

